
Component({
  properties: {
    color: {
      type: String,
      value: '#333'
    }
  },
  data: {
    msg: 'hello world'
  },
  methods: {
    reverseMsg() {
      // console.log(this.data)
      this.setData({
        msg: this.data.msg.split('').reverse().join('')
      })
    }
  },
  lifetimes: {
    attached() {
      console.log('attached')
    },
  }
})
